package com.longxi.tianjintianbao.ui.activity.quality;

import android.support.v4.view.ViewPager;

import com.flyco.tablayout.SlidingTabLayout;
import com.longxi.tianjintianbao.R;
import com.longxi.tianjintianbao.ui.base.BaseActivity;
import com.longxi.tianjintianbao.ui.presenter.quality.QualityListAtPresenter;
import com.longxi.tianjintianbao.ui.view.quality.IQualityListAtView;

import butterknife.BindView;

public class QualityListActivity extends BaseActivity<IQualityListAtView, QualityListAtPresenter> implements IQualityListAtView {

    private final String TAG = "QualityListActivity";

    @BindView(R.id.tabLayout)
    SlidingTabLayout mTabLayout;
    @BindView(R.id.vp)
    ViewPager mViewPager;

    @Override
    protected int provideContentViewId() {
        return R.layout.activity_general_tab;
    }

    @Override
    public void initData() {
        super.initData();
        mPresenter.setBar();
        mPresenter.initViewPager();
    }

    @Override
    public void initListener() {
        super.initListener();
    }

    @Override
    protected QualityListAtPresenter createPresenter() {
        return new QualityListAtPresenter(this);
    }

    @Override
    public SlidingTabLayout getTabLayout() {
        return mTabLayout;
    }

    @Override
    public ViewPager getViewPager() {
        return mViewPager;
    }

}
